package com.example.forum_system.service;

import com.example.forum_system.model.ArticleReply;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Li_Xiaochi
 * Date: 2025/4/29
 * Time: 12:25
 */
public interface IArticleReplyService {

    /**
     * 新增帖子回复
     * @param articleReply
     */
    @Transactional //事务管理
    void create(ArticleReply articleReply);

    /**
     * 根据帖子 Id 查询所有的回复
     * @param articleId 帖子id
     * @return
     */
    List<ArticleReply> selectByArticleId(Long articleId);
}
